{% extends "../layouts/base.twig" %}

{% block title %}注册{% endblock %}

{% block styles %}
    <link href="/static/hplus/css/plugins/iCheck/custom.css" rel="stylesheet">
    <script>if(window.top !== window.self){ window.top.location = window.location;}</script>
{% endblock %}


{% block body %}
    <div class="container-fluid">
        {% if err.Error() != nil %}
            <div class="alert alert-danger" role="alert">
                {{ err.Error() }}
            </div>
        {% endif %}
        <div class="row">
            <div class="col-lg-10">
                <div class="row">
                    <div class="col-xs-12 col-sm-4 col-md-4 col-lg-5 col-md-offset-1">
                        <div class="tile">
                            <h3>welcome</h3>
                            <form class="m-t" role="form" action="" method="post">
                                <div class="form-group">
                                    <input type="email" class="form-control" placeholder="请输入邮箱" name="email" required="" value="{{ form.Email }}">
                                </div>
                                <div class="form-group">
                                    <input type="text" class="form-control" placeholder="请输入用户名" name="username" required="" value="{{ form.Username }}">
                                </div>
                                <div class="form-group">
                                    <input type="password" class="form-control" placeholder="请输入密码" name="password" required="" value="{{ form.Password }}">
                                </div>
                                <div class="form-group">
                                    <input type="password" class="form-control" placeholder="请再次输入密码" name="repassword" required="" value="{{ form.Repassord }}">
                                </div>
                                <button type="submit" class="btn btn-primary block full-width m-b">注 册</button>

                                <p class="text-muted text-center"><small>已经有账户了？</small><a href="/login">点此登录</a>
                                </p>

                            </form>
                        </div>
                    </div>
                </div> <!-- /row -->
            </div>
        </div> <!-- /row -->
    </div>
{% endblock %}



